package edu.tms.bean;

import java.util.*;

import net.easymvc.annotation.Valid;

/**
 * 班级活动表
 * @author Administrator
 *
 */
public class ClassActivity {
	/**
	 * 班级特色展示id
	 */
	private Integer classActivityId;

	/**
	 * 活动标题
	 */
	private String activityTitle;

	/**
	 * 相册id
	 */
	private Integer albumId;

	/**
	 * 班级id
	 */
	private Integer classId;

	/**
	 * 相关简介
	 */
	private String activityContent;

	/**
	 * 开始时间
	 */
	@Valid(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/**
	 * 截止时间
	 */
	@Valid(pattern="yyyy-MM-dd HH:mm:ss")
	private Date deadline;

	/**
	 * 活动状态 1:报名中,2:活动中，3：活动结束
	 */
	private Integer activityState;
	
	/**
	 * 虚拟字段班级名称
	 */
	private String className;


	public ClassActivity () {
		super();
	}

	public ClassActivity (Integer classActivityId,String activityTitle,Integer albumId,Integer classId,String activityContent,Date createTime,Date deadline,Integer activityState) {
		this.classActivityId = classActivityId;
		this.activityTitle = activityTitle;
		this.albumId = albumId;
		this.classId = classId;
		this.activityContent = activityContent;
		this.createTime = createTime;
		this.deadline = deadline;
		this.activityState = activityState;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public Integer getClassActivityId() {
		return this.classActivityId;
	}

	public void setClassActivityId(Integer classActivityId) {
		this.classActivityId = classActivityId;
	}

	public String getActivityTitle() {
		return this.activityTitle;
	}

	public void setActivityTitle(String activityTitle) {
		this.activityTitle = activityTitle;
	}

	public Integer getAlbumId() {
		return this.albumId;
	}

	public void setAlbumId(Integer albumId) {
		this.albumId = albumId;
	}

	public Integer getClassId() {
		return this.classId;
	}

	public void setClassId(Integer classId) {
		this.classId = classId;
	}

	public String getActivityContent() {
		return this.activityContent;
	}

	public void setActivityContent(String activityContent) {
		this.activityContent = activityContent;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getDeadline() {
		return this.deadline;
	}

	public void setDeadline(Date deadline) {
		this.deadline = deadline;
	}

	public Integer getActivityState() {
		return this.activityState;
	}

	public void setActivityState(Integer activityState) {
		this.activityState = activityState;
	}

	@Override
	public String toString() {
		return "ClassActivity[classActivityId=" + classActivityId+ ", activityTitle=" + activityTitle + ", albumId=" + albumId + ", classId=" + classId + ", activityContent=" + activityContent + ", createTime=" + createTime + ", deadline=" + deadline + ", activityState=" + activityState + "]";
	}


}

